<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Eyes;

use Service\Common\BaseService;

class Service extends BaseService
{
	

    public static function getSelectDiseaseType($type = 0)
    {

        if (ACTION_NAME == 'index') {
            return M('eyes_disease_type')->where(['id' => $type])->getField('name');
        } else {
            return M('eyes_disease_type')->order('px asc,id asc')->getField('id,name', true);
        }
    }

    public function articlesDel($ids)
    {
        return Eyes::getInstance()->articlesDel($ids);
    }

    public function diseaseDel($ids)
    {
        return Eyes::getInstance()->diseaseDel($ids);
    }

    public function diseasetypeDel($ids)
    {
        return Eyes::getInstance()->diseasetypeDel($ids);
    }

    public function liveList($uid, $page_num, $page_size)
    {
        return Eyes::getInstance()->lists($uid, $page_num, $page_size);
    }





}